<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <table>
        <tr>
            <td>id</td>
            <td>类</td>
            <td>时间</td>
            <td>状态</td>
            <td>上次执行</td>
            <td>执行结果</td>
            <td>操作</td>
        </tr>
        <tr th:each="q:${scripts}">
            <td th:text="${q.id}">id</td>
            <td th:text="${q.jobClass}">类</td>
            <td th:text="${q.cron}">时间</td>
            <td th:text="${q.status}">状态</td>
            <td th:text="${q.lastExecute}">上次执行</td>
            <td th:text="${q.lastResult}">执行结果</td>
            <td><a th:href="${'pause.html?id='+q.id}" th:if="${q.status==1}">暂停</a> <a th:href="${'resume.html?id='+q.id}" th:if="${q.status==0}">恢复</a></td>
        </tr>
    </table>

<form action="update.html" method="post">
    id:<input name="id">
    表达式:<input name="cron">
    类:<input name="jobClass">
    <input type="submit" value="提交">
</form>
</body>
</html>